﻿<phone:PhoneApplicationPage 
    x:Class="ClientMobile.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800" 
    d:DataContext="{d:DesignData SampleData/MainViewModelSampleData.xaml}"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
 
        <!--Panorama control-->
        <controls:Panorama Title="SSVGPS" FontSize="10">
            <controls:Panorama.Background>
                <ImageBrush ImageSource="PanoramaBackground.png"/>
            </controls:Panorama.Background>
 
            <!--Panorama item one-->
            <controls:PanoramaItem Header="Profile">
                <!--Double line list with text wrapping-->
                <ListBox Margin="0,0,-12,0">
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                    <StackPanel Orientation="Horizontal" >
                        <Image Height="150" Name="image1" Stretch="Fill" Width="150" />
                        <!--Replace rectangle with image-->
                        <StackPanel Width="311">
                            <TextBlock Text="{Binding LineTwo}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}" Foreground="#FFE20909" FontSize="12" />
                            <TextBlock x:Name="Nom" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Foreground="#FFF20909" FontSize="24" />
                            <TextBlock x:Name="Prenom" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Foreground="#FFF50D0D" FontSize="24" />
                            </StackPanel>
                            
                        </StackPanel>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <!--Replace rectangle with image-->
                        <Button x:Name="butto" Height="100" Width="100" BorderThickness="0" Margin="12,0,9,0" Click="profil_change">
                            <Button.Background>
                                <ImageBrush ImageSource="/ClientMobile;component/Images/edit_profile1.png" Stretch="Uniform" />
                            </Button.Background>
                        </Button>
                        <StackPanel Width="311">
                            <TextBlock Text="{Binding LineTwo}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}" />
                            <TextBlock Text="Changer Profil" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Tap="TextBlock_Tap" />
                        </StackPanel>
                    </StackPanel>
                    
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <!--Replace rectangle with image-->
                        <Button x:Name="mail" Height="100" Width="100" BorderThickness="0" Margin="12,0,9,0" Click="envoyer_mail">
                            <Button.Background>
                                <ImageBrush ImageSource="/ClientMobile;component/Images/mail_send1.png" Stretch="Uniform" />
                            </Button.Background>
                        </Button>
                        <StackPanel Width="311">
                            <TextBlock Text="Envoyer Email" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Tap="TextBlock_Tap_1" />
                            <TextBlock Text="{Binding LineTwo}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}"/>
                        </StackPanel>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <!--Replace rectangle with image-->
                        <Button x:Name="pos" Height="100" Width="100" BorderThickness="0" Margin="12,0,9,0" Click="button1_Click">
                            <Button.Background>
                                <ImageBrush ImageSource="/ClientMobile;component/Images/map.png" Stretch="UniformToFill" />
                            </Button.Background>
                        </Button>
                        <StackPanel Width="311">
                            <TextBlock Text="Ma Position" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Tap="TextBlock_Tap_2" />
                            <TextBlock Text="{Binding LineTwo}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}"/>
                        </StackPanel>
                    </StackPanel>

                </ListBox>
            </controls:PanoramaItem>
 
            <!--Panorama item two-->
            <!--Use 'Orientation="Horizontal"' to enable a panel that lays out horizontally-->
            <controls:PanoramaItem Header="Missions">
                <!--Double line list with image placeholder and text wrapping-->
                <ListBox Margin="0,0,-12,0">
                   
                            <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                                <!--Replace rectangle with image-->
                        <Button x:Name="button1" Height="100" Width="100" BorderThickness="0" Margin="12,0,9,0" Click="button1_Click_1">
                            <Button.Background>
                                <ImageBrush ImageSource="/ClientMobile;component/Images/map1.png" Stretch="UniformToFill" />
                            </Button.Background>
                        </Button>
                        <StackPanel Width="311">                                    
                                    <TextBlock Text="En Cours" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Tap="TextBlock_Tap_5" />
                                    <TextBlock Text="{Binding LineTwo}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}"/>
                                </StackPanel>
                            </StackPanel>

                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <!--Replace rectangle with image-->
                        <Button x:Name="attente" Height="100" Width="100" BorderThickness="0" Margin="12,0,9,0" Click="attente_Click">
                            <Button.Background>
                                <ImageBrush ImageSource="/ClientMobile;component/Images/map_help.png" />
                            </Button.Background>
                        </Button>
                        <StackPanel Width="311">
                            <TextBlock Text="En Attente" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Tap="TextBlock_Tap_7" />
                            <TextBlock Text="{Binding LineTwo}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}"/>
                        </StackPanel>
                    </StackPanel>

                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <!--Replace rectangle with image-->
                        <Button x:Name="button" Height="100" Width="100" BorderThickness="0" Margin="12,0,9,0" Click="button_Click">
                            <Button.Background>
                                <ImageBrush ImageSource="/ClientMobile;component/Images/map_accept.png" Stretch="UniformToFill" />
                            </Button.Background>
                        </Button>
                        <StackPanel Width="311">
                            <TextBlock Text="Mes missions" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Tap="TextBlock_Tap_8" />
                            <TextBlock Text="{Binding LineTwo}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}"/>
                        </StackPanel>
                    </StackPanel>
                   

                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <!--Replace rectangle with image-->
                        <Button x:Name="mnoti" Height="100" Width="100" BorderThickness="0" Margin="12,0,9,0" Click="mnoti_Click">
                            <Button.Background>
                                <ImageBrush ImageSource="/ClientMobile;component/Images/info.png" Stretch="UniformToFill" />
                            </Button.Background>
                        </Button>
                        <StackPanel Width="311">
                            <TextBlock Text="Notifications" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Tap="TextBlock_Tap_9"/>
                            <TextBlock Text="{Binding LineTwo}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}"/>
                        </StackPanel>
                    </StackPanel>

                </ListBox>
            </controls:PanoramaItem>

            <controls:PanoramaItem Header="Messagerie">
                <!--Double line list with image placeholder and text wrapping-->
                <ListBox Margin="0,0,-12,0">
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <!--Replace rectangle with image-->
                        <Button x:Name="but" Height="100" Width="100" BorderThickness="0" Margin="12,0,9,0" Click="but_Click">
                            <Button.Background>
                                <ImageBrush ImageSource="/ClientMobile;component/Images/user_comment.png" Stretch="UniformToFill" />
                            </Button.Background>
                        </Button>
                        <StackPanel Width="311">
                            <TextBlock Text="{Binding LineTwo}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}" />
                            <TextBlock Text="Envoyer Msg" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Tap="TextBlock_Tap_3" />
                        </StackPanel>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <!--Replace rectangle with image-->
                        <Button x:Name="msgrec" Height="100" Width="100" BorderThickness="0" Margin="12,0,9,0" Click="msgrec_Click">
                            <Button.Background>
                                <ImageBrush ImageSource="/ClientMobile;component/Images/mail_receive1.png" Stretch="UniformToFill" />
                            </Button.Background>
                        </Button>
                        <StackPanel Width="311">
                            <TextBlock Text="Messages réçus" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Tap="TextBlock_Tap_4" />
                            <TextBlock Text="{Binding LineTwo}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}"/>
                        </StackPanel>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <!--Replace rectangle with image-->
                        <Button x:Name="msgenv" Height="100" Width="100" BorderThickness="0" Margin="12,0,9,0" Click="msgenv_Click">
                            <Button.Background>
                                <ImageBrush ImageSource="/ClientMobile;component/Images/mail_send1.png" Stretch="UniformToFill" />
                            </Button.Background>
                        </Button>
                        <StackPanel Width="311">
                            <TextBlock Text="Messages envoyés" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Tap="TextBlock_Tap_6"/>
                            <TextBlock Text="{Binding LineTwo}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}"/>
                        </StackPanel>
                    </StackPanel>
                </ListBox>
            </controls:PanoramaItem>
        </controls:Panorama>
    </Grid>
</phone:PhoneApplicationPage>